package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.UserRechargeRecordsMapper;
import com.ruoyi.boss.domain.UserRechargeRecords;
import com.ruoyi.boss.service.IUserRechargeRecordsService;

/**
 * 用户详情-充值记录-新增Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class UserRechargeRecordsServiceImpl implements IUserRechargeRecordsService 
{
    @Autowired
    private UserRechargeRecordsMapper userRechargeRecordsMapper;

    /**
     * 查询用户详情-充值记录-新增
     * 
     * @param rechargeId 用户详情-充值记录-新增主键
     * @return 用户详情-充值记录-新增
     */
    @Override
    public UserRechargeRecords selectUserRechargeRecordsByRechargeId(Long rechargeId)
    {
        return userRechargeRecordsMapper.selectUserRechargeRecordsByRechargeId(rechargeId);
    }

    /**
     * 查询用户详情-充值记录-新增列表
     * 
     * @param userRechargeRecords 用户详情-充值记录-新增
     * @return 用户详情-充值记录-新增
     */
    @Override
    public List<UserRechargeRecords> selectUserRechargeRecordsList(UserRechargeRecords userRechargeRecords)
    {
        return userRechargeRecordsMapper.selectUserRechargeRecordsList(userRechargeRecords);
    }

    /**
     * 新增用户详情-充值记录-新增
     * 
     * @param userRechargeRecords 用户详情-充值记录-新增
     * @return 结果
     */
    @Override
    public int insertUserRechargeRecords(UserRechargeRecords userRechargeRecords)
    {
        return userRechargeRecordsMapper.insertUserRechargeRecords(userRechargeRecords);
    }

    /**
     * 修改用户详情-充值记录-新增
     * 
     * @param userRechargeRecords 用户详情-充值记录-新增
     * @return 结果
     */
    @Override
    public int updateUserRechargeRecords(UserRechargeRecords userRechargeRecords)
    {
        return userRechargeRecordsMapper.updateUserRechargeRecords(userRechargeRecords);
    }

    /**
     * 批量删除用户详情-充值记录-新增
     * 
     * @param rechargeIds 需要删除的用户详情-充值记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteUserRechargeRecordsByRechargeIds(Long[] rechargeIds)
    {
        return userRechargeRecordsMapper.deleteUserRechargeRecordsByRechargeIds(rechargeIds);
    }

    /**
     * 删除用户详情-充值记录-新增信息
     * 
     * @param rechargeId 用户详情-充值记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteUserRechargeRecordsByRechargeId(Long rechargeId)
    {
        return userRechargeRecordsMapper.deleteUserRechargeRecordsByRechargeId(rechargeId);
    }
}
